

---  data_cache 白名单ip_allow配置说明：
---	   跟 ssdb_server ssdb_db_select配置在同一层
---
---    ip_allow = { check = 1,	list = '8.210.74.80 192.168.1.1',},
---
---    check值：   0=不检查   1=仅打印报错日志   2=禁止访问并打印报错日志
---        报错日志在  logs/miniw/dc_allow_ip_20210101.log 中，前期可以用check=1来检查ip列表
---
---	   list值：    [[字符串]] 用空格分隔的ip列表

local require = require
local ns_acc_config1 = require( "modules.data_cache.config.db_acc_config1")


local const_ = {
	auth = 'xZtXkxJFyhHbfSbOXs6NflySwUHGCnLI';
	ip1 = '127.0.0.1',
};


local ns_config = {
	_VERSION        = '0.12.1',
	__DAY_TIME__    = 86400,

	ssdb = {
		battlepass ={
			ssdb_server = {
				[0]  = { ip = '127.0.0.1',    port = 18900,  auth=const_.auth, },
			},
			ssdb_db_select = {
				[0]=0, [1]=0, [2]=0, [3]=0, [4]=0, [5]=0, [6]=0, [7]=0, [8]=0, [9]=0
			},
			--ip_allow = { check = 1,	list = '8.210.74.80',},
		},

		business = {
			ssdb_server = {
				[0]  = { ip = '127.0.0.1',    port = 18600,  auth=const_.auth, },
			},
			ssdb_db_select = {
				[0]=0, [1]=0, [2]=0, [3]=0, [4]=0, [5]=0, [6]=0, [7]=0, [8]=0, [9]=0, comm = 0,
			},
			--ip_allow = { check = 1,	list = '8.210.74.80',},
		},

		welfare =
		{
			ssdb_server = {
				[0]  = { ip = '127.0.0.1',    port = 18800,  auth=const_.auth, },
			},
			ssdb_db_select = {
				[0]=0, [1]=0, [2]=0, [3]=0, [4]=0, [5]=0, [6]=0, [7]=0, [8]=0, [9]=0,comm = 0,
			},	
		--	ip_allow = { check = 1,	list = '8.210.74.80 183.240.204.116',},
		},

		business_advert =
		{
			ssdb_server = {
				[0]  = { ip = '127.0.0.1',    port = 18801,  auth=const_.auth, },
			},
			ssdb_db_select = {
				[0]=0, [1]=0, [2]=0, [3]=0, [4]=0, [5]=0, [6]=0, [7]=0, [8]=0, [9]=0, ["comm"] = 0,
			},
			ip_allow = { check = 1,	list = '127.0.0.1 120.24.64.132 183.240.204.116'},
		},
		mall = {
			ssdb_server = {
				[0]  = { ip = '127.0.0.1',    port = 18600,  auth=const_.auth, },
			},
			ssdb_db_select = {
				[0]=0, [1]=0, [2]=0, [3]=0, [4]=0, [5]=0, [6]=0, [7]=0, [8]=0, [9]=0, comm = 0,
			},
			--ip_allow = { check = 1,	list = '120.24.64.132',},
		},
		posting = {
			ssdb_server = {
				[0] = {	 ip = '127.0.0.1',    port = 17260,  auth=const_.auth, },
			},

			ssdb_db_select = {
				[0]=0, [1]=0, [2]=0, [3]=0, [4]=0, [5]=0, [6]=0, [7]=0, [8]=0, [9]=0,
			},
		},

		subsp = {
			ssdb_server = {
				[0] = {	 ip = '127.0.0.1',    port = 18100,  auth=const_.auth, },
			},

			ssdb_db_select = {
				[0]=0, [1]=0, [2]=0, [3]=0, [4]=0, [5]=0, [6]=0, [7]=0, [8]=0, [9]=0,
			},
		},

		rcm = {		-- 未再使用
			ssdb_server = {
				[0] = {	 ip = '127.0.0.1',    port = 17280,  auth=const_.auth, },
			},

			ssdb_db_select = {
				[0]=0, [1]=0, [2]=0, [3]=0, [4]=0, [5]=0, [6]=0, [7]=0, [8]=0, [9]=0,
			},
		},

		rent = {
			ssdb_server = {
				[0] = {	 ip = '127.0.0.1',    port = 17270,  auth=const_.auth, },
			},
			ssdb_db_select = {
				[0]=0, [1]=0, [2]=0, [3]=0, [4]=0, [5]=0, [6]=0, [7]=0, [8]=0, [9]=0,
			},
		},

		map = {
			ssdb_server = {
				[0] = {	 ip = '127.0.0.1',    port = 17200,  auth=const_.auth, },
			},

			ssdb_db_select = {
				[0]=0, [1]=0, [2]=0, [3]=0, [4]=0, [5]=0, [6]=0, [7]=0, [8]=0, [9]=0,
			},
		},

		ma = {
			ssdb_server = {
				[0]  = { ip = '127.0.0.1',    port = 17101,  auth=const_.auth, },
				[11] = { ip = '127.0.0.1',    port = 17111,  auth=const_.auth, },
			},

			ssdb_db_select = {
				[0]=0, [1]=0, [2]=0, [3]=0, [4]=0, [5]=0, [6]=0, [7]=0, [8]=0, [9]=0, comm=11,
			},
		},

		cm = {
			ssdb_server = {
				[0] = {	 ip = '127.0.0.1',    port = 18200,  auth=const_.auth, },
			},

			ssdb_db_select = {
				[0]=0, [1]=0, [2]=0, [3]=0, [4]=0, [5]=0, [6]=0, [7]=0, [8]=0, [9]=0,
			},
		},

		gchat = {
			ssdb_server = {
				[0]  = { ip = '127.0.0.1',    port = 17101,  auth=const_.auth, },
				[11] = { ip = '127.0.0.1',    port = 17111,  auth=const_.auth, },
			},

			ssdb_db_select = {
				[0]=0, [1]=0, [2]=0, [3]=0, [4]=0, [5]=0, [6]=0, [7]=0, [8]=0, [9]=0, comm=11,
			},
		},

		achieve = {
			ssdb_server = {
				[0]  = { ip = '127.0.0.1',    port = 17101,  auth=const_.auth, },
				[11] = { ip = '127.0.0.1',    port = 17111,  auth=const_.auth, },
			},
			ssdb_db_select = {
				[0]=0, [1]=0, [2]=0, [3]=0, [4]=0, [5]=0, [6]=0, [7]=0, [8]=0, [9]=0, comm=11,
			},
			ip_allow = { check = 1,	list = '8.210.74.80',},
		},

		punisher = {
			ssdb_server = {
				[0]  = { ip = '127.0.0.1',    port = 18300,  auth=const_.auth, },
				[11] = { ip = '127.0.0.1',    port = 18311,  auth=const_.auth, },
			},
			ssdb_db_select = {
				[0]=0, [1]=0, [2]=0, [3]=0, [4]=0, [5]=0, [6]=0, [7]=0, [8]=0, [9]=0, comm=11,
			},
			ip_allow = { check = 1,	list = '8.210.74.80',},
		},

		manor =
		{
			ssdb_server = {
				[0]   = { ip = '127.0.0.1', port = 18700,  auth=const_.auth, },
				[11]  = { ip = '127.0.0.1', port = 18700,  auth=const_.auth, },
			},
			ssdb_db_select = {
				[0]=0, [1]=0, [2]=0, [3]=0, [4]=0, [5]=0, [6]=0, [7]=0, [8]=0, [9]=0, comm = 11,
			},
		},
	},

	mysql = {

		mapbag = {
			mysql_server = {
				[0] = {
					host='172.16.0.70', port=3306, user='mmog', password='8t8MSsrQczhP2d@ICMuk5',
					database='db_rank', table_name = 't_miniw_kv',
				},
			},
			mysql_db_select = {
				[0]=0, [1]=0, [2]=0, [3]=0, [4]=0, [5]=0, [6]=0, [7]=0, [8]=0, [9]=0,
			},
			ip_allow = { check = 1,	list = '8.210.74.80 183.240.204.116',},
		},

		hot_update = {
			mysql_server = {
				[0] = {
					host='172.16.0.70', port=3306, user='mmog', password='8t8MSsrQczhP2d@ICMuk5',
					database='hot_update', table_name = 't_miniw_kv',
				},
			},
			mysql_db_select = {
				[0]=0, [1]=0, [2]=0, [3]=0, [4]=0, [5]=0, [6]=0, [7]=0, [8]=0, [9]=0,
			},
			ip_allow = { check = 1,	list = '8.210.74.80 183.240.204.116',},
		},

		avatar_khv = {
			mysql_server = {
				[0] = {
					host='172.16.0.70', port=3306, user='mmog', password='8t8MSsrQczhP2d@ICMuk5',
					database='db_avatar', table_name = 't_miniw_kv',
				},
			},
			mysql_db_select = {
				[0]=0, [1]=0, [2]=0, [3]=0, [4]=0, [5]=0, [6]=0, [7]=0, [8]=0, [9]=0,
			},
			ip_allow = { check = 1,	list = '8.210.74.80 183.240.204.116',},
		},

		team_mysql = {
			mysql_server = {
				[0] = {
					host='172.16.0.70', port=3306, user='mmog', password='8t8MSsrQczhP2d@ICMuk5',
					database='db_team', table_name = 't_miniw_kv',
				},
			},
			mysql_db_select = {
				[0]=0, [1]=0, [2]=0, [3]=0, [4]=0, [5]=0, [6]=0, [7]=0, [8]=0, [9]=0,
			},
			ip_allow = { check = 1,	list = '8.210.74.80 183.240.204.116',},
		},

	},

	---数据只存share_dict, 数据不落地写
	shm = {
		team_shm = {
			ip_allow = { check = 1,	list = '8.210.74.80 183.240.204.116',},
		},

		--- 社交
		social_shm = {
			ip_allow = { check = 1,	list = '8.210.74.80 183.240.204.116',},
		},
	},

};


return ns_config;

